<%@page import="com.mm.gbicc.bean.Menu"%>
<%@page import="com.mm.gbicc.dao.FileDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	
	FileDao dao = new FileDao();
	List<Menu> menusAll = new ArrayList<Menu>();
	List<Menu> menus = dao.getmenuS("1000182855","");
	
	StringBuilder sb = new StringBuilder();
	for (Menu menu : menus) {
		//sb.append(menu.getName_cn());
		dao.get(dao,sb,menu);
		
	}
	request.setAttribute("menu", sb.toString());
	
	String user_id = request.getParameter("user_id");
	//System.out.println(user_id);
	request.setAttribute("user_id", user_id);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>PDF文件管理</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link href="jsUpload/css/default.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="css/easyui.css">
	<link rel="stylesheet" type="text/css" href="css/icon.css">
	<link href="jsUpload/css/uploadify.css" rel="stylesheet" type="text/css" />
	<!-- <link rel="stylesheet" type="text/css" href="css/demo.css"> -->
	
	<script type="text/javascript" src="jsUpload/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="js/jquery.easyui.min.js" ></script>
	<script type="text/javascript" src="jsUpload/swfobject.js"></script>
	<script type="text/javascript" src="jsUpload/jquery.uploadify.v2.1.0.js"></script>
	<script type="text/javascript" src="js/pdfImport.js"></script>
	
  </head>
<body style="background-color: white;"> 
	<div style="float: left;width: 36%;border:0px solid red;">
		<div id="fileQueue"></div>
		<input type="file" name="file" id="uploadify"/>
	</div>
	<div style="float: left;width: 24%;border:0px solid red;height: 483px;">
		<div style="border:0px solid red;">
			导入说明：<br>
			1：请先点击选择文件<br>
			2：选中文件，点击保存<br>
			3：选择文件夹<br>
			4：点击确认导入，完成导入<br>
		</div>
		<div style="height: 370px;border:0px solid red;">
			请文件夹选择<br>
			<div id="tree" style="height: 350px;border:1px solid red;overflow: auto;">
				<ul id="tt1" class="easyui-tree" data-options="animate:true,dnd:false">
					${menu}
				</ul>
			</div>
		</div>
		<input type="hidden" value="" id="hid_value">
		<input type="hidden" value="${user_id}" id="user_id">
		<button onclick="submit();">确认导入</button>
	</div>
	<div id="info" style="float: left;width: 35%;border:0px solid red;height: 483px;overflow: auto;">
		
	</div>
</body>
</html>
